package org.neusoft.auth.controller;


import org.neusoft.auth.entity.CommonResult;
import org.neusoft.auth.entity.Dept;
import org.neusoft.auth.entity.Emp;
import org.neusoft.auth.service.DeptService;
import org.neusoft.auth.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DeptController {
    @Autowired
    DeptService deptService;
    @RequestMapping("/dept/all")
    public CommonResult all(){
        return  deptService.all();
    }



}
